next up previous contents index
Next: Function declaration Up: Using functions and procedures Previous: Using functions and procedures

Procedure declaration

A procedure declaration defines an identifier and associates it with a block of code. The procedure can then be called with a procedure statement.


Procedure declaration

syntdiag3975

syntdiag3979

syntdiag3983

section (gif) for the list of parameters.

A procedure declaration that is followed by a block implements the action of the procedure in that block.

The following is a valid procedure :


listing3956

Note that it is possible that a procedure calls itself.


next up previous contents index
Next: Function declaration Up: Using functions and procedures Previous: Using functions and procedures

Michael Van Canneyt
Fri Sep 25 09:15:40 MEST 1998